body {
	font-family: "Trebuchet MS", Helvetica, Jamrul, sans-serif;
	background-color: white;
	line-height: 1.8em;
	font-size: 10pt;
	width: 45em;
	margin : auto;
}
p {
	margin-top: 0em;
	margin-bottom: 1em;
	text-align: justify;
}
p.character, p.parenthetical, p.dialog {
	margin-bottom: 0em;
	margin-left: 11em;
}
p.sceneheading, p.shot, p.character, p.transition {
	text-transform: uppercase;
	font-weight: bold;
}
p.parenthetical {
	font-style: italic;
}
p.transition {
	text-align: right;
}
p.sceneheading {
	margin-top: 2.6em;
}
p.shot {
	margin-top: 2em;
}
p.character, p.action {
	margin-top: 1em;
}
.softbreak:after, .hardbreak:after {
	counter-increment: pages;
	content: counter(pages, decimal) ".";
	display: block;
	margin-top: 1em;
	margin-bottom: 1em;
	text-align: right;
}
p.sceneheading:before {
	content: counter(scenecountl, decimal) ".   ";
	counter-increment: scenecountl;
}
p.sceneheading:after {
	content: counter(scenecountr, decimal) ".";
	counter-increment: scenecountr;
	display: block;
	text-align: right;
	margin-top: -1.8em;
}
 @media screen {
.softbreak {
	border-top: 1px dashed black;
	width: 100%;
}
.hardbreak {
	border-top: 1px solid black;
	width: 100%;
}
.firstpage, .firstpagespacer {
	display: none;
}
p.sceneheading {
	background-color: rgb(232, 232, 232);
}
p.sceneheading[ordinal]:before, p.sceneheading[ordinal]:after {
	content: attr(ordinal);
}
p.character[dual="true"] {
	display: list-item;
	list-style-image: url(chrome://celtx/skin/dd.png);
}
}
 @media print {
.softbreak, .hardbreak {
	page-break-before: always;
}
.firstpage, .firstpagespacer {
	height: 1em;
	margin-bottom: 1em;
}
.firstpage:after {
	content: "1.";
	display: block;
	text-align: right;
}
p {
	page-break-inside: avoid;
}
p.character {
	page-break-after: avoid;
}
p.parenthetical {
	page-break-after: avoid;
}
p.sceneheading {
	page-break-after: avoid;
}
}
